import Mock from 'mockjs'
import homewraper from '../assets/image/homewraper.png'

Mock.mock('http://localhost:3000/api/swiper', () => {
    return Mock.mock({
        "data|3-5": [
        {
            "id": function() {
            return Math.random().toString(36).substring(7).split('').join('.')
            },
            "img": homewraper,
            "title": "@cword(5)"
        }
        ]
    })
})
// Mock.mock(/\/api\/hospital*?/, 'get',(option) => {
//     console.log(option)
//     return  hospital
// })
